package com.cx.service;

import com.cx.pojo.Car;
import com.cx.pojo.CarInfoModel;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface CarService {
    //添加汽车
    int insert(Car car);

    //修改汽车
    int updateByPrimaryKey(Car car);

    //根据id删除汽车
    int deleteByPrimaryKey(Integer carId);

    //根据id查询汽车
    Car selectByPrimaryKey(Integer carId);

    //查询所有汽车
    List<CarInfoModel> selectAllCar(CarInfoModel carInfoModel);

    //分页
    PageInfo<CarInfoModel> CarManage(CarInfoModel carInfoModel);
}
